package com.chaodriod.common.mvp.presenter

import com.swbyte.app.mvp.view.BaseView

/**
 * Created by 72byte on 2017/9/11.
 *
 */

abstract class BasePresenter<V : BaseView> {

    @JvmField
    protected var mView: V? = null


    open fun attachView(view: V) {
        mView = view
    }


    open fun detachView() {
        mView = null
    }

}